import Vue from 'vue'
import App from './App'

//系统功能部分---
import { instance } from '@/common/ajax.js' // 全局挂载引入，配置相关在该index.js文件里修改
import store from '@/store/index.js' 

Vue.prototype.$api = instance
Vue.prototype.$store = store
Vue.prototype.$url = 'https://alumni.smart1st.net.cn/'
//系统功能部分---

//公共跳转函数
Vue.prototype.navigateTo = uni.navigateTo;
Vue.prototype.redirectTo = uni.redirectTo;

//组件部分---
import cuCustom from './components/colorui/cu-custom.vue'
Vue.component('cu-custom',cuCustom)

import cuUpload from './components/cu-upload/cu-upload.vue'
Vue.component('cu-upload',cuUpload)

import scenery from './pages/scenery/index'
Vue.component('scenery',scenery)

import nearby from './pages/nearby/nearby'
Vue.component('nearby',nearby)

import goods from './pages/goods/goods'
Vue.component('goods',goods)

import my from './pages/my/my'
Vue.component('my',my)
//组件部分---

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()